<!DOCTYPE html>
<html ng-app="myApp" ng-controller="userInputController" xmlns:th="http://www.thymeleaf.org">
<head th:include="/common/head :: commonHead('编辑用户')"></head>
<!-- 引入zTree_v3 -->
<link rel="stylesheet" href="/static/plugins/zTree_v3/css/zTreeStyle/zTreeStyle.css" type="text/css">
<body>
<div style="height: 20px;"></div>
<div  data-ng-init="load()" style="width: 90%; margin: 0 auto;">
    <form lay-filter="inputForm" class="layui-form" action="">

        <input id="userId" type="hidden" th:value="${userId}" />
        <!--<div class="layui-form-item">-->
            <!--<label class="layui-form-label">用户名称</label>-->
            <!--<div class="layui-input-block">-->
                <!--<input ng-if="!isUpdate" ng-model="entity.fullname" type="text" name="fullname" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">-->
                <!--<input ng-if="isUpdate" disabled ng-model="entity.fullname" type="text" name="fullname" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">-->
            <!--</div>-->
        <!--</div>-->
        <div class="layui-form-item">
            <label class="layui-form-label">手机号</label>
            <div class="layui-input-block">
                <input ng-if="!isUpdate" ng-model="entity.cellphone" maxlength="11" type="text" name="cellphone" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
                <input ng-if="isUpdate" disabled ng-model="entity.cellphone" maxlength="11" type="text" name="cellphone" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">拥有角色</label>
            <div id="roleDiv" class="layui-input-block">
            </div>
        </div>

        <input type="hidden" id="btnSubmit" ng-click="submit($event)">
    </form>
</div>
<span th:replace="/common/on-load-js :: commonOnLoadJs"></span>
<script src="/plugins/zTree_v3/js/jquery.ztree.core.js"></script>
<script src="/plugins/zTree_v3/js/jquery.ztree.excheck.js"></script>
<span th:replace="/common/angular :: angular"></span>
</body>
<script src="/static/admin/js/sysuser/input.js"></script>
</html>